import { fabric } from "fabric-with-erasing";
//马克笔
export default function getMarkPenBrush(fabricCanvas: HTMLCanvasElement, opt: any) {
  const conf = opt ?? { width: 25, color: "#afafaf" };
  const brush = new fabric.PencilBrush(fabricCanvas);
  brush.color = conf.color || "pink";
  brush.width = conf.width || 25;
  brush.strokeLineCap = "square";
  brush.strokeLineJoin = "round";
  brush.opacity = 0.3; // 可以调整透明度，模拟高亮效果
  return brush;
}
